home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6198 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.clark.net!usenet
  2. From: yom@clark.net (yom)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Sorting a directory
  5. Date: 23 Feb 1996 02:43:42 GMT
  6. Organization: Your Organization
  7. Message-ID: <4gj9ku$dgp@clarknet.clark.net>
  8. References: <4gbbi9$c7s@news1.radix.net>
  9. NNTP-Posting-Host: yom.clark.net
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. Link to libucb library in /usr/ucblib directory. (-L/usr/ucblib -lucb)
  15.  
  16. Song (yom@clark.net)
  17.  
  18. In article <4gbbi9$c7s@news1.radix.net>, jfw@radix.net says...
  19. >
  20. >I want to retrieve a sorted list of files in a directory.
  21. >I am using UNIX, on an HP, and I found by reading the
  22. >manpages I could use scandir() and alphasort() to perform the task
  23. >(these seem to be old BSD functions). When
  24. >I try to move the same code over to a SUN, the linker
  25. >(for the SunOS 5.4 cc) can't find these functions. 
  26. >Is there a library that I can link with that provides them?
  27. >Or have they been dropped as the UNIX world moves from
  28. >BSD to System V? Is there something in the C library that
  29. >I should be using instead?
  30. >
  31. >Sincerely,
  32. >
  33. >Jim Ward
  34. >
  35.  
  36.